using System.Collections.Generic;
using SocketTool.Model.Enums;

namespace SocketTool.Model.DataModels
{
    public class ProtocolContentModel
    {
        public ProtocolContentModel()
        {
            Children = new List<ProtocolContentModel>();
        }

        /// <summary>
        /// json 协议的Key
        /// </summary>
        public string Key { get; set; }

        /// <summary>
        /// Json 协议的Value
        /// </summary>
        public object Value { get; set; }

        /// <summary>
        /// Valye 类型
        /// </summary>
        public JsonValueTypeEnum ValueType { get; set; }

        /// <summary>
        /// 协议字段说明
        /// </summary>
        public string Explan { get; set; }
        
        public IList<ProtocolContentModel> Children { get; set; }
    }
}